import axios from '../axios'
// 获取商品列表
export const fetchList = (params) => {
  return axios({
      url: '/products/fetchList',
      method: 'post',
      params
  })
}
// 更新删除状态
export const updateDeleteStatus = () => {
  return axios({
      url: '/products/updateDeleteStatus',
      method: 'get'
  })
}
// 更新新品状态
export const updateNewStatus = () => {
  return axios({
      url: '/products/updateNewStatus',
      method: 'get'
  })
}
// 更新推荐状态
export const updateRecommendStatus = () => {
  return axios({
      url: '/products/updateRecommendStatus',
      method: 'get'
  })
}
// 更新上架状态
export const updatePublishStatus = () => {
  return axios({
      url: '/products/updatePublishStatus',
      method: 'get'
  })
}
